package com.maimao.api.upload;

import com.maimao.core.model.resp.Result;
import com.maimao.model.user.sys.vo.Permissions;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/12/10 4:40 下午
 */
@Api(value = "文件上传中心")
@RequestMapping("/upload")
public interface UploadApi {
    @ApiOperation("批量删除")
    public void deleteBatch(List<String> urls);

    @ApiOperation("上传单个文件")
    Result<?> uploadImage(Integer brandId, MultipartFile file);

    @ApiOperation("上传身份证")
    Result<?> uploadMemberIdCard(String type, MultipartFile file);

    @ApiOperation("通用图片上传")
    Result<?> uploadCommon(MultipartFile file, Integer limit);

    @ApiOperation("通用文件上传")
    Result<?> uploadCommonFile(@RequestParam("file") MultipartFile file, @RequestParam("limit") Integer limit);

}
